package com.fs.mapper;

import com.fs.domain.HistoryOrders;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 历史订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Repository
@Mapper
public interface HistoryOrdersMapper 
{
    /**
     * 查询历史订单
     * 
     * @param id 历史订单主键
     * @return 历史订单
     */
    public HistoryOrders selectHistoryOrdersById(Long id);

    /**
     * 查询历史订单列表
     * 
     * @param historyOrders 历史订单
     * @return 历史订单集合
     */
    public List<HistoryOrders> selectHistoryOrdersList(HistoryOrders historyOrders);

    /**
     * 新增历史订单
     * 
     * @param historyOrders 历史订单
     * @return 结果
     */
    public int insertHistoryOrders(HistoryOrders historyOrders);

    /**
     * 修改历史订单
     * 
     * @param historyOrders 历史订单
     * @return 结果
     */
    public int updateHistoryOrders(HistoryOrders historyOrders);

    /**
     * 删除历史订单
     * 
     * @param id 历史订单主键
     * @return 结果
     */
    public int deleteHistoryOrdersById(Long id);

    /**
     * 批量删除历史订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHistoryOrdersByIds(Long[] ids);
}
